﻿using Shop.RemoteModel.Goods.Model;
using Shop.RemoteModel.SpuGoods.Model;
using WeDonekRpc.Client;
using WeDonekRpc.Model;

namespace Shop.Service.Interface
{
    public interface IGoodsService
    {
        SpuDatum[] Gets ( TopGetArg arg );
        GoodsDto[] Gets ( long[] ids );
        long Add ( GoodsSet arg );
        void Delete ( long id );
        GoodsDatum GetDatum ( long id );
        PagingResult<GoodsDto> Query ( GoodsQueryParam query, IBasicPage paging );
        bool Set ( long id, GoodsSet arg );

        void Public ( long id, long opUserId, Dictionary<long, int> stock );

        void OffShelf ( long id );
    }
}